package com.newjiabo.applet.controller;

import cn.hutool.core.bean.BeanUtil;
import com.newjiabo.common.core.controller.BaseController;
import com.newjiabo.common.core.domain.AjaxResult;
import com.newjiabo.common.utils.SnowFlake;
import com.newjiabo.ski.domain.SkiSnowField;
import com.newjiabo.ski.domain.vo.SnowFieldQuery;
import com.newjiabo.ski.service.ISkiSnowFieldInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * {类内容}
 *
 * @author CaoMengHui.
 * @version 1.0
 * @since 2023/10/19 17:13
 */
@RestController
@RequestMapping("/applet/snowField")
@Api(tags = "小程序-雪场信息管理模块")
public class SnowFieldController extends BaseController {

    @Resource
    private ISkiSnowFieldInfoService snowFieldInfoService;

    @ApiOperation(value = "获取雪场列表信息")
    @GetMapping(value = "/list")
    public AjaxResult list(SnowFieldQuery query){
        return AjaxResult.success(snowFieldInfoService.selectByQuery(query));
    }
}
